package us.gaaoc.framework.signature.digital;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

public class Tester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		try {
			
			FileInputStream pdfDoc = new FileInputStream(new File("/home/tapshals/test/semantics.pdf"));
			FileInputStream certFile = new FileInputStream(new File("/home/tapshals/test/backUpOfDigSig.p12"));
			String password = "aditya";
			DigitalSigner signer = new DigitalSigner();
			//signer.signFile(pdfDoc, certFile,password);
			System.out.println("signature value = "+signer.signFile(pdfDoc, certFile,password).toString());	
			
		} catch (FileNotFoundException e) {			 
			e.printStackTrace();
		} catch (Exception e) {			 
			e.printStackTrace();
		}
		 

	}

}
